/**
 * Created by kiwi on 16/12/21.
 */

export const selectTab = (tabName) => {
  return {
    type: 'SELECT_TAB',
    tabName
  }
};

export const navigationTab = (tabName,act,route) => {
  switch (act){
    case "pop":
      return {
        type: 'NAVIGATION_POP',
        tabName,
        route
      };
    case "push":
      return {
        type: 'NAVIGATION_PUSH',
        tabName,
        route
      };
  }
};

